package com.bambooshoot.domain.bo;

import com.bambooshoot.common.core.domain.BaseEntity;
import com.bambooshoot.common.validate.AddGroup;
import com.bambooshoot.common.validate.EditGroup;
import com.bambooshoot.domain.BizIncomeMonthlySummary;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 月收入汇总业务对象 biz_income_monthly_summary
 *
 * @author mxc
 * @date 2024-07-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BizIncomeMonthlySummary.class, reverseConvertGenerate = false)
public class BizMonthlyIncomeSummaryBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 收入月份
     */
    @NotNull(message = "收入月份不能为空", groups = {AddGroup.class, EditGroup.class})
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date incomeMonth;

    /**
     * 收入金额(元)
     */
    private BigDecimal amount;

    /**
     * 最低收入金额(元)
     */
    private BigDecimal minAmount;

    /**
     * 最高收入金额(元)
     */
    private BigDecimal maxAmount;

    /**
     * 备注
     */
    private String remark;


}
